package net.sxjr.mbg.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 第三方账号绑定
 * </p>
 *
 * @author cuixc
 * @since 2020-12-10
 */
public class JbdpUserThird extends Model<JbdpUserThird> {

    private static final long serialVersionUID=1L;

    /**
     * 用户ID
     */
    @TableField("USER_ID")
    private String userId;

    /**
     * 微信ID
     */
    @TableField("OPENID")
    private String openid;

    /**
     * 密钥
     */
    @TableField("USER_KEY")
    private String userKey;

    /**
     * 最后登陆时间
     */
    @TableField("LAST_DATE")
    private LocalDateTime lastDate;

    @TableId("ID")
    private String id;


    public String getUserId() {
        return userId;
    }

    public JbdpUserThird setUserId(String userId) {
        this.userId = userId;
        return this;
    }

    public String getOpenid() {
        return openid;
    }

    public JbdpUserThird setOpenid(String openid) {
        this.openid = openid;
        return this;
    }

    public String getUserKey() {
        return userKey;
    }

    public JbdpUserThird setUserKey(String userKey) {
        this.userKey = userKey;
        return this;
    }

    public LocalDateTime getLastDate() {
        return lastDate;
    }

    public JbdpUserThird setLastDate(LocalDateTime lastDate) {
        this.lastDate = lastDate;
        return this;
    }

    public String getId() {
        return id;
    }

    public JbdpUserThird setId(String id) {
        this.id = id;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "JbdpUserThird{" +
        "userId=" + userId +
        ", openid=" + openid +
        ", userKey=" + userKey +
        ", lastDate=" + lastDate +
        ", id=" + id +
        "}";
    }
}
